﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001E0 RID: 480
	public class TDb2OpenCursorStmt : TCustomDb2Stmt
	{
		// Token: 0x0600102F RID: 4143 RVA: 0x0030CB0B File Offset: 0x0030AD0B
		public TDb2OpenCursorStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2opencursorstmt;
		}

		// Token: 0x06001030 RID: 4144 RVA: 0x0030CB1F File Offset: 0x0030AD1F
		internal override void buildsql()
		{
		}

		// Token: 0x06001031 RID: 4145 RVA: 0x0030CB21 File Offset: 0x0030AD21
		internal override void clear()
		{
		}

		// Token: 0x06001032 RID: 4146 RVA: 0x0030CB23 File Offset: 0x0030AD23
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06001033 RID: 4147 RVA: 0x0030CB2A File Offset: 0x0030AD2A
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x17000301 RID: 769
		// (get) Token: 0x06001034 RID: 4148 RVA: 0x0030CB2C File Offset: 0x0030AD2C
		// (set) Token: 0x06001035 RID: 4149 RVA: 0x0030CB34 File Offset: 0x0030AD34
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x06001036 RID: 4150 RVA: 0x0030CB40 File Offset: 0x0030AD40
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TOpenSqlNode topenSqlNode = (TOpenSqlNode)this.rootNode;
			this.cursorName = topenSqlNode.CursorName;
			return 0;
		}

		// Token: 0x06001037 RID: 4151 RVA: 0x0030CB78 File Offset: 0x0030AD78
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001038 RID: 4152 RVA: 0x0030CB88 File Offset: 0x0030AD88
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001390 RID: 5008
		private TObjectName cursorName;
	}
}
